import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/sales/visit/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/sales/visit/addOrEdit',
    method: 'post',
    data: data
  })
}
export function edit(data) {
  return request({
    url: '/sale/customer/edit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/sales/visit/delete',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/sales/visit/' + data,
    method: 'get'
  })
}
export function getInfo2(data) {
  return request({
    url: '/sales/visit/forEdit/' + data,
    method: 'get'
  })
}

